

using UnityEngine;

public class ImprovePanel : PanelCommon
{
    public UITouchObject goBackBtn;

    public override void Start()
    {
        base.Start();
        
        goBackBtn.onPointerDownBegin = GoBackToBattleUI;
    }

    public void Init(ImproveVCData data)
    {
        
    }

    protected override void GoBackToView()
    {
        base.GoBackToView();

        GoBackToBattleUI(Vector2.zero);
    }

    public void OnClickGrowTall()
    {
        LoadingSceneController.LoadScene("GrowTallScene");
    }

    public void OnClickStronger()
    {
        LoadingSceneController.LoadScene("GrowStrongerScene");
    }

    public void OnClickGrowRich()
    {
        LoadingSceneController.LoadScene("GrowRichScene");
    }

    public void OnClickGrowEducation()
    {
        LoadingSceneController.LoadScene("GrowEduScene");
    }

    bool m_ToHide;
    void GoBackToBattleUI(Vector2 pos)
    {
        if (m_ToHide)
            return;

        m_ToHide = true;

        GetComponentInParent<MBattleSceneController>().ShowBattleUI();
    }
    // Update is called once per frame
    void Update()
    {
        
    }

}